/**
 * 
 */
package com.blumov.fastbox.infrastructure.persistence.largequery;

import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.criterion.ProjectionList;
import org.hibernate.transform.ResultTransformer;

/**
 * @author epidata
 *
 */
public interface LargeQueryBuilder {
	/**
	 * crea a large query a partir de una criteria.
	 * @param aCriteria
	 * @return aLargeQuery
	 */
	<T> LargeQuery<T> buildWith(Criteria aCriteria);
	
	/**
	 * crea a large query a partir de un query.
	 * @param <T>
	 * @param query
	 * @param transformer
	 * @return aLargeQuery
	 */
	<T> LargeQuery<T> buildWith(Query query);
	
	/**
	 * 
	 * @param <T>
	 * @param aCriteria
	 * @param projections
	 * @param transformer
	 * @return
	 */
	<T> LargeQuery<T> buildWith(Criteria aCriteria, ProjectionList projections, ResultTransformer transformer);
}
